package daos;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public abstract class AbstractDAO {
	
	protected void closeConnection(Connection conex, Statement stmt, ResultSet rs)	throws SQLException {
		if (rs != null)
			rs.close();
		if (stmt != null)
			stmt.close();
		if (conex != null)
			conex.close();
	}
}